package main

import "fmt"

func main() {
	var a [3]string
	a[0] = "Allen"
	a[1] = "Luffy"
	a[2] = "Zoro"
	fmt.Printf("a = %v, len(a) = %v\n", a, len(a))

	var b [4]int = [4]int{1, 2, 3, 4}
	fmt.Printf("b = %v, len(b) = %v\n", b, len(b))

	var c = [3]float64{1, 3.3}
	fmt.Printf("c = %v, len(c) = %v\n", c, len(c))

	d := [3]string{"Sanji", "Nami", "Robin"}
	fmt.Printf("d = %v, len(d) = %v\n", d, len(d))

	e := [...]int{0, 1, 2, 3}
	fmt.Printf("e = %v, len(e) = %v\n", e, len(e))

	f := [3]string{0: "Chopper", 1: "Brook"}
	fmt.Printf("f = %v, len(f) = %v\n", f, len(f))

	g := [3]string{2: "Frank", 0: "Chopper", 1: "Brook"}
	fmt.Printf("g = %v, len(g) = %v\n", g, len(g))

	h := [...]int{10: 100}
	fmt.Printf("h = %v, len(h) = %v\n", h, len(h))

	var i [3]int = [...]int{1, 2, 3}
	fmt.Printf("i = %v, len(i) = %v\n", i, len(i))
}
